<?= Form::open([
    'data-builder-command'=>'plugin:cmdApplyPluginSettings'
]) ?>
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="popup">&times;</button>
        <h4 class="modal-title"><?= e(trans('winter.builder::lang.plugin.entity_name')) ?></h4>
    </div>
    <div class="modal-body">
        <?php if (!isset($errorMessage)): ?>
            <?= $form->render() ?>
        <?php else: ?>
            <p><?= e($errorMessage) ?></p>
        <?php endif ?>
    </div>
    <div class="modal-footer">
        <?php if (!isset($errorMessage)): ?>
            <button
                type="submit"
                class="btn btn-primary">
                <?= e(trans('backend::lang.form.ok')) ?>
            </button>
        <?php endif ?>
        <button
            type="button"
            class="btn btn-default"
            data-dismiss="popup">
            <?= e(trans('backend::lang.form.cancel')) ?>
        </button>
    </div>
    <?php if (isset($pluginCode)): ?>
        <input type="hidden" name="pluginCode" value="<?= e($pluginCode) ?>">
    <?php endif ?>
<?= Form::close() ?>